/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/iBeacon.html#wxstopbeacondiscoveryobject)
 */
export default function stop_beacon_discovery() {
	return new Promise<boolean>((resolve, reject) => {
		wx.stopBeaconDiscovery({
			fail() {
				reject(false);
			},
			success() {
				resolve(true);
			}
		});
	});
}
